import request from '@/utils/request'

//  获取商品评价分页列表
export function listEvaluation(query){
  return request({
    url: '/manager/member/evaluation/list',
    method: 'get',
    params: query
  })
}
//  查询评价详情
export function getEvaluation(id){
  return request({
    url: '/manager/member/evaluation/' + id,
    method: 'get',
  })
}
//  更新评价
export function chgIsShow(data){
  return request({
    url: '/manager/member/evaluation/chgIsShow',
    method: 'post',
    data: data
  })
}

//  回复评价
export function replyEvaluation(data){
  return request({
    url: '/manager/member/evaluation/reply',
    method: 'post',
    data: data
  })
}
//  删除评价
export function deleteEvaluation(id){
  return request({
    url: '/manager/member/evaluation/' + id,
    method: 'delete'
  })
}





